<table cellpadding="0" cellspacing="0">
  <tbody>
<tr id="<%= element_row_id(@options) %>">
  <td id="<%= element_cell_id(@options) %>" class="crud">
	 	<div class="<%= @options[:action] %>">
      <h4><%= Inflector.titleize(@options[:action]) + " " + @options[:scaffold_model].label.singularize %></h4>
      <%= render :partial => dry_template_location("show") %>
		<%
			options = {:action => :list,
								:model => @options[:parent_model] || @one_row_options[:crud_model],
								:one_only => @one_row_options[:one_only]}
			options[:action] = :view if @options[:parent_id] 
			options[:id] = @options[:parent_id] if @options[:parent_id] 
		%>
    <%= start_form_tag options, {:name => edit_model_name(@options[:scaffold_model]) }%>
    <%= hidden_field_tag "page", @options[:page] %>
		<%= hidden_field_tag sort_limit_field_name(@options[:scaffold_model]), sort_limit(@options[:scaffold_model]) %>
		<%= submit_tag "Close" %>
    <%= end_form_tag %>	
    </div>
  </td>
</tr>
  </tbody>
</table>
